@use '@angular/material/core/tokens/token-utils';
@use '@angular/material/core/style/sass-utils';

// The prefix used to generate the fully qualified name for tokens in this file.
$global-prefix: ngm;
$prefix: (ngm, story-calculation);

@function get-unthemable-tokens() {
  @return (
    container-rounded: var(--#{$global-prefix}-primary-container-rounded)
  );
}

@function get-color-tokens() {
  @return (
    color-surface: var(--#{$global-prefix}-color-surface),
    color-surface-container: var(--#{$global-prefix}-color-surface-container),
  );
}

@function get-token-slots() {
  @return sass-utils.deep-merge-all(
    get-unthemable-tokens(),
    get-color-tokens(),
  );
}

:host {
  @include token-utils.create-token-values($prefix, get-token-slots());
  @apply relative flex;
}

@include token-utils.use-tokens($prefix, get-token-slots()) {
  :host {
    background-color: var(#{token-utils.get-token-variable(color-surface)});
  }
}

:host::ng-deep {
  .pac-story-calculation {
    @apply absolute top-0 left-0 right-0 bottom-0 z-10;
  }
}

.mat-mdc-list {
  @apply m-2;
}

.mat-mdc-list-item {
  @apply rounded-md hover:bg-black/5 dark:hover:bg-white/10;
}